package com.xiaoge.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoge.entity.EduLecturer;
import com.xiaoge.entity.EduOrderInfo;
import com.xiaoge.response.Result;
import com.xiaoge.service.EduOrderInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 *@作者: 冷俊杰
 *@类名: HomePageController类
 *@创建时间: 2022/11/12 9:50
 *@描述:
 *首页展示
 *@修改原图
 *@修改作者
 *@修改时间
 */
@Api(value = "首页展示", tags = "首页展示")
@RestController
@RequestMapping("/homePage")
public class HomePageController {
    @Resource
    private EduOrderInfoService service;

    /**
     * 功能描述: <br>
     *  展示首页所有信息
     * @return
     */
    @ApiOperation(value = "首页展示", notes = "首页展示")
    @GetMapping("/ListHomePage")
    public Result ListHomePage(){
        Map<Object, Object> map = service.ListHomePage();
        return Result.ok().data("map",map);
    }
}
